﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
//------------------------------
using DotNetNuke.Entities.Modules;

namespace VluSDCEvent
{
    public partial class CtlSettings : ModuleSettingsBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public override void LoadSettings()
        {
            ModuleController objModuleController = new ModuleController();
            try
            {
                chkBulletImage.Checked = bool.Parse(objModuleController.GetTabModuleSettings(TabModuleId)["chkBulletImage"].ToString());
            }
            catch (Exception ex)
            {
                VluSDCEvent.Controller.MtdLogException(ex);
            };
            base.LoadSettings();
        }

        public override void UpdateSettings()
        {
            ModuleController objModuleController = new ModuleController();
            try
            {
                objModuleController.UpdateTabModuleSetting(TabModuleId, "chkBulletImage", chkBulletImage.Checked.ToString());
            }
            catch (Exception ex)
            {
                VluSDCEvent.Controller.MtdLogException(ex);
            };
            base.UpdateSettings();
        }
    }
}